package my.mall.common.util

import org.springframework.util.DigestUtils

object PasswordUtils {
    private const val SALT = "aofjaz[paowfjovaoloqfahfewqor"

    fun md5(password: String): String {
        val pwd = DigestUtils.md5DigestAsHex(password.toByteArray()) + SALT
        return DigestUtils.md5DigestAsHex(pwd.toByteArray())
    }
}
